.PTHONY:all
all: sp test

sp:spinlock_example.cpp
	g++ -o $@ $^ -std=c++11 -lpthread
test:test.cpp
	g++ -o $@ $^ -std=c++11 -lpthread

.PTHONY:clean
clean:
	rm -f sp test
